package com.woniu.cms.auth.core.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.woniu.cms.auth.core.entity.RbacRole;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "PermVo对象", description = "")
public class PermVo {

    @ApiModelProperty("权限编号")
    private Integer id;

    @ApiModelProperty("菜单名字")
    private String label;

    @ApiModelProperty("上级菜单的标号")
    private Integer pid;

    @ApiModelProperty("菜单链接的url")
    private String url;

    @ApiModelProperty("菜单是否展开,默认展开")
    private boolean open = true;

    @ApiModelProperty("菜单是否选中,默认不选中")
    private boolean checked = false;

    @ApiModelProperty("子菜单")
    private List<PermVo> children = new ArrayList<>();
}
